package com.uwlaser.service.dto;

import com.uwlaser.annotation.DateFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author yangwei
 * @create 2022/12/28
 *
 */
@Data
public class AntonRecordProductParam {

    @ApiModelProperty(value = "安东编码")
    @NotBlank(message = "安东编码【antonCode】不能为空！")
    private String antonCode ;

    @ApiModelProperty(value = "描述")
    @NotBlank(message = "描述【description】不能为空！")
    private String description ;

    @ApiModelProperty(value = "备注")
    private String remark ;

    @ApiModelProperty(value = "呼叫开始时间")
    @NotBlank(message = "呼叫开始时间【beginTime】不能为空！")
    @DateFormat(message = "呼叫开始时间格式不正确 yyyy-MM-dd HH:mm:ss")
    private String beginTime;

    @ApiModelProperty(value = "呼叫结束时间")
    @NotBlank(message = "呼叫结束时间【endTime】不能为空！")
    @DateFormat(message = "呼叫结束时间格式不正确 yyyy-MM-dd HH:mm:ss")
    private String endTime;

    @ApiModelProperty(value = "触发设备编号")
    @NotBlank(message = "触发设备编号不能为空！")
    private String deviceCode;

    @ApiModelProperty(value = "耗时（分）")
    @NotBlank(message = "耗时（分）【consumeTime】不能为空！")
    private String consumeTime;
}
